<template>
  <div>
    <el-breadcrumb separator="/" class="submenu">
      <el-breadcrumb-item><a href="javascript:;">RFI动态信息</a></el-breadcrumb-item>
    </el-breadcrumb>
    <div class="main-table">
      <el-tabs v-model="rfi" @tab-click="handleClick">
        <el-tab-pane label="RFI视图" name="first">
          <rfiView></rfiView>
        </el-tab-pane>
        <el-tab-pane label="详细视图" name="second">
          <rfiItem></rfiItem>
        </el-tab-pane>
      </el-tabs>   
    </div>
  </div>
</template>
<script>
  import RfiItem from './rfiItem'
  import RfiView from './rfiView'
  export default {
    components: {
      RfiItem,
      RfiView
    },
    data() {
      return {
        rfi: 'first'
      };
    },
    methods: {
      handleClick(tab, event) {
        console.log(tab, event);
      }
    }
  };
</script>
